<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="<%=basePath%>js/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/vue.min.js"></script>
<link rel="stylesheet" href="<%=basePath%>css/layui/css/layui.css">
<script type="text/javascript" src="<%=basePath%>js/BaseUtile.js"></script>

<script type="text/javascript"
	src="<%=basePath%>js/systemManage/choosePermission.js"></script>
<title>选择权限</title>


<script type="text/javascript">
	
</script>
</head>
<body style="margin: 2%">
	<div class="layui-form">
		<form id="permissionForm" action="">
			<input name="roleId" value="${roleId}" style="display: none" />

			<c:forEach items="${classificationList}" var="classList">
				<div style="display: block; clear: both;">
					<label style="font-size: large;">${classList.classification}</label>
					<hr>
					<c:forEach items="${permissionList}" var="permission">
						<div style="margin-top: 1.5%;float: left">
						<c:if test="${ permission.classification == classList.classification}">
							<input id="${permission.permissionId}" type="checkbox"
								lay-skin="primary" title="${permission.permissionName}"
								<c:forEach items="${rolePermissionList}" var="rp">
							<c:if test="${permission.permissionId eq rp.permissionId}">checked="checked"</c:if>
						</c:forEach>
								name="permission" value="${permission.permissionId}" />

						</c:if>
						</div>
					</c:forEach>
					<div style="display: block; clear: both;">
						<br>
					</div>
				</div>
			</c:forEach>







		</form>










	</div>







	<script type="text/javascript" src="<%=basePath%>css/layui/layui.js"></script>
	<script>
		layui.use('form', function() {
			//表单验证

		});
	</script>
</body>
</html>